-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made the about us page dynamic. Loads details from a json file. #53
Made the about us page dynamic. Loads details from a json file. #53
Conversation
@@ -0,0 +1,98 @@ | |||
package nsit.app.com.nsitapp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have you changed the file name to AboutUs2? Let it be AboutUs only.
aboutUsListView.setAdapter(mAdapter); | ||
aboutUsListView.addFooterView(footerView); | ||
TextView rep = (TextView) rootView.findViewById(R.id.GoToRepo); | ||
TextView con = (TextView) rootView.findViewById(R.id.cont); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the variable name more informative. rep & con doesn't actually tell, what these are for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variable names were picked up from the previous code. I'll change them.
@@ -61,6 +61,7 @@ protected void onCreate(Bundle savedInstanceState) { | |||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); | |||
super.onCreate(savedInstanceState); | |||
setContentView(R.layout.activity_main); | |||
appContext=getApplicationContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the need of this? I don't think you are using it anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being used to get the json file using the getResources() method in class utility.
* Created by Kartik Kwatra on 27-08-2017. | ||
*/ | ||
|
||
public class aboutUs_loader extends AsyncTaskLoader<List<AboutUsMember>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class names should be like this..
"AboutUsLoader"
@@ -0,0 +1,21 @@ | |||
<?xml version="1.0" encoding="utf-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aboutUs is a fragment. Isn't it?
The functionality is complete overall. But there are a few changes, that needs to be taken care of, before merging. Also, Can you explain the reason for adding so many Java files? BAsically, tell the functionality of each one. |
Thank you for the review. I have noted the changes to be made. |
2. Renamed the rep and con variables to goToRepo and contribute respectively 3. Renamed the layout files since they are fragments
Made the changes as per the review. 4 new Java files have been added and 1 modified. Here i list the functionality of each.
|
Fixes #47 |
Please merge #53 |
Team page; static data
Fixes #47
Please review the changes. Gradle version has not been updated.