-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
36 changed files
with
1,028 additions
and
146 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...uild/intermediates/incremental/mergeDebugAndroidTestResources/compile-file-map.properties
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Mon Feb 19 02:32:25 PKT 2018 | ||
#Tue Feb 20 01:39:54 PKT 2018 | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-xhdpi-v4\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\res\\merged\\androidTest\\debug\\drawable-xhdpi-v4\\app_banner.png | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\res\\merged\\androidTest\\debug\\drawable-mdpi-v4\\app_icon.png |
4 changes: 2 additions & 2 deletions
4
ModelM1/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Mon Feb 19 02:32:02 PKT 2018 | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png | ||
#Tue Feb 20 01:39:29 PKT 2018 | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-xhdpi\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-xhdpi-v4\\app_banner.png | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png |
2 changes: 1 addition & 1 deletion
2
ModelM1/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Mon Feb 19 02:32:27 PKT 2018 | ||
#Tue Feb 20 01:40:01 PKT 2018 | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\default\\res\\drawable-mdpi-v4\\app_icon.png | ||
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-xhdpi\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\default\\res\\drawable-xhdpi-v4\\app_banner.png |
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/example/humayunt/templateui/About.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,13 @@ | ||
package com.example.humayunt.templateui; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class About extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_about); | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
app/src/main/java/com/example/humayunt/templateui/Adapter/FeatureRetriever.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,84 @@ | ||
package com.example.humayunt.templateui.Adapter; | ||
|
||
/** | ||
* Created by HumayunT on 2/19/2018. | ||
*/ | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.support.v7.widget.RecyclerView; | ||
import android.support.v7.widget.RecyclerView.ViewHolder; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.View.OnClickListener; | ||
import android.view.ViewGroup; | ||
import android.widget.ImageView; | ||
import android.widget.RelativeLayout; | ||
import android.widget.TextView; | ||
|
||
import com.example.humayunt.templateui.DataModel.featureDataModel; | ||
; | ||
import com.example.humayunt.templateui.R; | ||
import com.example.humayunt.templateui.SingleItem.singleItemDiet; | ||
import com.example.humayunt.templateui.singleItemFeature; | ||
|
||
import java.util.ArrayList; | ||
public class FeatureRetriever extends RecyclerView.Adapter<FeatureRetriever.DataObjectHolder> implements OnClickListener{ | ||
ArrayList<featureDataModel> Show; | ||
private Activity activity; | ||
private String cat_id; | ||
private DataObjectHolder holder; | ||
int i = 0; | ||
private LayoutInflater mLayoutInflater = null; | ||
private String name; | ||
private String str_flag = ""; | ||
|
||
public static class DataObjectHolder extends ViewHolder { | ||
public ImageView img; | ||
public RelativeLayout layout; | ||
public TextView tvCity; | ||
public TextView tvName; | ||
|
||
public DataObjectHolder(View itemView) { | ||
super(itemView); | ||
this.layout = (RelativeLayout) itemView.findViewById(R.id.dmodel); | ||
this.tvName = (TextView) itemView.findViewById(R.id.tv1); | ||
// this.tvCity = (TextView) itemView.findViewById(R.id.txt_city_griditemlayout); | ||
this.img = (ImageView) itemView.findViewById(R.id.im1); | ||
} | ||
} | ||
|
||
public void onClick(View v) { | ||
} | ||
|
||
public FeatureRetriever(Activity activity2, ArrayList<featureDataModel> contacts) { | ||
this.activity = activity2; | ||
this.Show = contacts; | ||
this.mLayoutInflater = (LayoutInflater) this.activity.getSystemService("layout_inflater"); | ||
} | ||
|
||
public DataObjectHolder onCreateViewHolder(ViewGroup parent, int viewType) { | ||
this.holder = new DataObjectHolder(this.mLayoutInflater.inflate(R.layout.featurelist, null)); | ||
return this.holder; | ||
} | ||
|
||
public void onBindViewHolder(DataObjectHolder holder, final int position) { | ||
holder.layout.setOnClickListener(new OnClickListener() { | ||
public void onClick(View v) { | ||
|
||
Intent intent = new Intent(v.getContext(),singleItemFeature.class); | ||
intent.putExtra("month", ( FeatureRetriever.this.Show.get(position)).getMonth()); | ||
v.getContext().startActivity(intent); | ||
} | ||
}); | ||
holder.tvName.setText("Month : " + ( this.Show.get(position)).getName()); | ||
// holder.tvCity.setText("Feature : " + ( this.Show.get(position)).getHowuse()); | ||
//holder.img.setImageBitmap(( this.Show.get(position)).getImg()); | ||
} | ||
|
||
public int getItemCount() { | ||
return this.Show.size(); | ||
} | ||
} | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/example/humayunt/templateui/Contactus.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,13 @@ | ||
package com.example.humayunt.templateui; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class Contactus extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_contactus); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/example/humayunt/templateui/DataModel/featureDataModel.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,38 @@ | ||
package com.example.humayunt.templateui.DataModel; | ||
|
||
/** | ||
* Created by HumayunT on 2/19/2018. | ||
*/ | ||
|
||
public class featureDataModel { | ||
private String month; | ||
private String name,howuse; | ||
|
||
public featureDataModel() { | ||
} | ||
|
||
public String getMonth() { | ||
return month; | ||
} | ||
|
||
public void setMonth(String month) { | ||
this.month = month; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getHowuse() { | ||
return howuse; | ||
} | ||
|
||
public void setHowuse(String howuse) { | ||
this.howuse = howuse; | ||
} | ||
} | ||
|
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
57 changes: 57 additions & 0 deletions
57
app/src/main/java/com/example/humayunt/templateui/Faq.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,57 @@ | ||
package com.example.humayunt.templateui; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.widget.TextView; | ||
|
||
public class Faq extends AppCompatActivity { | ||
TextView faq; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_faq); | ||
faq = (TextView) findViewById(R.id.faqs); | ||
faq.setText("Is the Mobile App secure?\n" + | ||
"\n" + | ||
"Yes! All critical information is encrypted and no personal information is stored on your mobile device. However, mobile devices do offer you the ability to store your login information for apps installed on the device. If you choose to store your login information, any person who has access to your mobile device can access your account.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"What features does the Mobile App have?\n" + | ||
"\n" + | ||
"Both the Mobile Apps and the Mobile Web App give you the ability to you to access your account information, view news releases, report an outage, and contact us via email or phone.\n" + | ||
"\n" + | ||
"Once you've installed a Mobile App on your phone, you'll also have the ability to view a map of our offices and payment locations.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"How do I get the Mobile App for my phone?\n" + | ||
"\n" + | ||
"Simply look for our name in the App Store or in the Android Market. In the Android Market, if you can't find our App, that likely means your phone is not supported - see the list of supported operating systems.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"Do I have to buy the Mobile App?\n" + | ||
"\n" + | ||
"No. Our Mobile App is completely free to download and install.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"I have multiple accounts. Can I see them all in the Mobile App and the Mobile Website?\n" + | ||
"\n" + | ||
"Yes. Once you've logged in, you'll be asked to select the account you wish to view. If you only have one account, the details for that account will show up as soon as you log in.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"How current is the account information I see in the Mobile App?\n" + | ||
"\n" + | ||
"The information you see in the Mobile App and in the Mobile Website is shown in real-time, so it's always accurate. However, if you keep the Mobile App or Mobile Website open for an extended period of time, you should refresh the page by selecting a new option in order to ensure the information is still current.\n" + | ||
"\n" + | ||
|
||
"\n" + | ||
"How do I find your offices and payment locations? Do I have to log in first?\n" + | ||
"\n" + | ||
"You do not have to log in to view addresses or maps to our office locations or even to get our contact information. Simply open the App and use the \"Offices\" link on the main screen."); | ||
} | ||
} |
76 changes: 76 additions & 0 deletions
76
app/src/main/java/com/example/humayunt/templateui/Features.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,76 @@ | ||
package com.example.humayunt.templateui; | ||
|
||
import android.database.SQLException; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.database.Cursor; | ||
import android.database.sqlite.SQLiteDatabase; | ||
import android.graphics.Bitmap; | ||
import android.graphics.BitmapFactory; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.support.v7.widget.LinearLayoutManager; | ||
import android.support.v7.widget.RecyclerView; | ||
import android.util.Log; | ||
import android.view.View; | ||
import android.widget.ImageView; | ||
import android.widget.LinearLayout; | ||
import android.widget.TextView; | ||
import android.widget.Toast; | ||
|
||
import com.example.humayunt.templateui.Adapter.DietsRetriever; | ||
import com.example.humayunt.templateui.Adapter.FeatureRetriever; | ||
import com.example.humayunt.templateui.DataModel.DietsDataModel; | ||
import com.example.humayunt.templateui.DataModel.featureDataModel; | ||
import com.example.humayunt.templateui.DatabaseHandler; | ||
import com.example.humayunt.templateui.R; | ||
|
||
import java.io.IOException; | ||
import java.util.ArrayList; | ||
|
||
public class Features extends AppCompatActivity { | ||
DatabaseHandler db; | ||
RecyclerView list; | ||
|
||
public Features() throws IOException { | ||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_features); | ||
|
||
this.list = (RecyclerView) findViewById(R.id.recyclerView); | ||
this.list.setHasFixedSize(true); | ||
this.list.setLayoutManager(new LinearLayoutManager(getApplicationContext())); | ||
RetriveDataFromDB(); | ||
//initializing the productlist | ||
|
||
} | ||
protected void RetriveDataFromDB() { | ||
try { | ||
this.db = new DatabaseHandler(this); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
try { | ||
this.db.createdatabase(); | ||
try { | ||
this.db.opendatabase(); | ||
ArrayList<featureDataModel> menuItems = new ArrayList(); | ||
menuItems.clear(); | ||
ArrayList<featureDataModel> contacts = this.db.getFeature(); | ||
Log.e("Array", ">>" + menuItems.size()); | ||
this.list.setAdapter(new FeatureRetriever(this, contacts)); | ||
} catch (SQLException sqle) { | ||
throw sqle; | ||
} | ||
} catch (IOException e2) { | ||
throw new Error("Unable to create database"); | ||
} | ||
} | ||
|
||
|
||
} | ||
|
||
|
Oops, something went wrong.