-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from sukhbir-singh/master
modified home activity
- Loading branch information
Showing
10 changed files
with
93 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
app/src/main/java/com/appteamnith/hillffair/activities/ContributorsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package com.appteamnith.hillffair.activities; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.support.v7.widget.LinearLayoutManager; | ||
import android.support.v7.widget.RecyclerView; | ||
import android.support.v7.widget.Toolbar; | ||
|
||
import com.appteamnith.hillffair.adapters.contributorsAdapter; | ||
import com.appteamnith.hillffair.R; | ||
import com.appteamnith.hillffair.application.SharedPref; | ||
import com.appteamnith.hillffair.models.contributorsItem; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class ContributorsActivity extends AppCompatActivity { | ||
|
||
RecyclerView rvContributors; | ||
contributorsAdapter ContributorAdapter; | ||
Toolbar tbContributers; | ||
ArrayList<contributorsItem> contributorsItems; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
SharedPref pref = new SharedPref(this); | ||
setTheme(pref.getThemeId()); | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_contributors); | ||
String BASE_URL = "https://github.com/"; | ||
rvContributors = (RecyclerView) findViewById(R.id.contributors_view); | ||
|
||
contributorsItems = new ArrayList<>(); | ||
contributorsItems.add(new contributorsItem("Sahil Badyal", BASE_URL + "sahilbadyal.png", BASE_URL + "sahilbadyal")); | ||
contributorsItems.add(new contributorsItem("Nishant Choudhary", BASE_URL + "nishant23j.png", BASE_URL + "nishant23j")); | ||
contributorsItems.add(new contributorsItem("Kunal Sharma", BASE_URL + "kunal.png", BASE_URL + "kunal12422")); | ||
contributorsItems.add(new contributorsItem("Shubham Naik", BASE_URL + "nrshubham.png", BASE_URL + "nrshubham")); | ||
contributorsItems.add(new contributorsItem("Ashima Anand", BASE_URL + "ashima1795.png", BASE_URL + "ashima1795")); | ||
|
||
//contributorsItems.add(new contributorsItem("", BASE_URL + ".png", BASE_URL + "")); | ||
|
||
contributorsItems.add(new contributorsItem("Ashish Gurjar", BASE_URL + "akgurjar.png", BASE_URL + "akgurjar")); | ||
contributorsItems.add(new contributorsItem("Sahil Ramola", BASE_URL + "RamolaWeb.png", BASE_URL + "RamolaWeb")); | ||
contributorsItems.add(new contributorsItem("Sukhbir Singh", BASE_URL + "sukhbir-singh.png",BASE_URL + "sukhbir-singh")); | ||
contributorsItems.add(new contributorsItem("Suraj", BASE_URL + "Akatsuki06.png",BASE_URL + "Akatsuki06")); | ||
contributorsItems.add(new contributorsItem("Aditya Arora", BASE_URL + "adi23arora.png",BASE_URL + "adi23arora")); | ||
contributorsItems.add(new contributorsItem("Goutham Reddy ", BASE_URL + "zeus512.png", BASE_URL + "zeus512")); | ||
contributorsItems.add(new contributorsItem("Hemant Singh ", BASE_URL + "joshafest.png", BASE_URL + "joshafest")); | ||
contributorsItems.add(new contributorsItem("Narendra Dodwaria", BASE_URL + "narendra36.png", BASE_URL + "narendra36")); | ||
contributorsItems.add(new contributorsItem("Parvesh Dhull", BASE_URL + "Parveshdhull.png", BASE_URL + "Parveshdhull")); | ||
contributorsItems.add(new contributorsItem("Nitin", BASE_URL + "iamNitin16.png", BASE_URL + "iamNitin16")); | ||
contributorsItems.add(new contributorsItem("Anishka Gupta", BASE_URL + "Anishka0107.png", BASE_URL + "Anishka0107")); | ||
contributorsItems.add(new contributorsItem("Jalaz Choudhary", BASE_URL + "jaykay12.png", BASE_URL + "jaykay12")); | ||
contributorsItems.add(new contributorsItem("Jatin", BASE_URL + "Jatin0312.png", BASE_URL + "Jatin0312")); | ||
contributorsItems.add(new contributorsItem("Vijaya Laxmi", BASE_URL + "vijaya22.png", BASE_URL + "vijaya22")); | ||
contributorsItems.add(new contributorsItem("Vibhor Garg", BASE_URL + "vibhorg.png", BASE_URL + "vibhorg")); | ||
|
||
ContributorAdapter = new contributorsAdapter(contributorsItems, ContributorsActivity.this); | ||
rvContributors.setAdapter(ContributorAdapter); | ||
|
||
tbContributers = (Toolbar) findViewById(R.id.contributors_toolbar); | ||
tbContributers.setTitle("Contributors"); | ||
setSupportActionBar(tbContributers); | ||
getSupportActionBar().setDisplayHomeAsUpEnabled(true); | ||
|
||
LinearLayoutManager lvmanager = new LinearLayoutManager(this); | ||
lvmanager.setOrientation(LinearLayoutManager.VERTICAL); | ||
rvContributors.setLayoutManager(lvmanager); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
app/src/main/java/com/appteamnith/hillffair/activities/contributors.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,23 @@ | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/nav_header_height" | ||
android:background="@drawable/side_nav_bar" | ||
android:layout_marginTop="10dp" | ||
android:background="#fff" | ||
android:gravity="bottom" | ||
android:orientation="vertical" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:theme="@style/ThemeOverlay.AppCompat.Dark"> | ||
|
||
<ImageView | ||
android:layout_marginTop="14dp" | ||
android:id="@+id/imageView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="@dimen/nav_header_vertical_spacing" | ||
android:src="@android:drawable/sym_def_app_icon" /> | ||
android:scaleType="centerInside" | ||
android:src="@drawable/main_screen" /> | ||
|
||
<TextView | ||
android:visibility="gone" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="@dimen/nav_header_vertical_spacing" | ||
|
@@ -27,10 +27,16 @@ | |
android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> | ||
|
||
<TextView | ||
android:visibility="gone" | ||
android:id="@+id/textView" | ||
android:textColor="#fff" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="[email protected]" /> | ||
<View | ||
android:background="#000" | ||
android:layout_marginTop="8dp" | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp"/> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters