Skip to content

Commit

Permalink
Merge pull request #124 from RamolaWeb/master
Browse files Browse the repository at this point in the history
Modified Layout
  • Loading branch information
sukhbir-singh authored Oct 26, 2016
2 parents 91a2dcf + 3460732 commit a52a717
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
import android.widget.TextView;
import android.widget.Toast;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.google.gson.annotations.SerializedName;

import appteam.nith.hillffair.R;
import appteam.nith.hillffair.application.MyApplication;
import appteam.nith.hillffair.application.SharedPref;
import appteam.nith.hillffair.models.BattleEventResponse;
import appteam.nith.hillffair.models.ClubModel;
import appteam.nith.hillffair.models.ClubModel2;
import appteam.nith.hillffair.utilities.Utils;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.google.gson.annotations.SerializedName;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
Expand Down Expand Up @@ -95,7 +95,7 @@ public void onResponse(Call<ClubModel2> call, Response<ClubModel2> response) {
ClubModel clubdata=data.getProfile();
clubName.setText(clubdata.getName());
description.setText(clubdata.getDescription());
Glide.with(ClubActivity.this).load(clubdata.getPhoto()).diskCacheStrategy(DiskCacheStrategy.ALL).error(R.drawable.person_icon).into(grup_img);
Glide.with(MyApplication.getAppContext()).load(clubdata.getPhoto()).diskCacheStrategy(DiskCacheStrategy.ALL).error(R.drawable.person_icon).into(grup_img);
}
else {
progressBar.setVisibility(View.INVISIBLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;

import java.util.ArrayList;

import appteam.nith.hillffair.R;
import appteam.nith.hillffair.adapters.CoreTeamAdapter;
import appteam.nith.hillffair.application.SharedPref;
import appteam.nith.hillffair.models.CoreTeamItem;

import java.util.ArrayList;

public class CoreTeamActivity extends AppCompatActivity {

RecyclerView recycler_view;
Expand All @@ -32,7 +32,7 @@ protected void onCreate(Bundle savedInstanceState) {
recycler_view=(RecyclerView)findViewById(R.id.core_team_list);
array_list=new ArrayList<>();
array_list.add(new CoreTeamItem("Ajay k. Sharma","Director",BASE_URL+"photos/director.jpg"));
array_list.add(new CoreTeamItem("Dr. Raman Parti","Dean Student Welfare","https://s3-ap-southeast-1.amazonaws.com/nimbus2k16/nimbusteam/raman_parti.png"));
array_list.add(new CoreTeamItem("Dr. A.S. Singha","Dean Student Welfare",BASE_URL+"photos/as.jpg"));
array_list.add(new CoreTeamItem("Dr. Surender Soni","Faculty Coordinator","https://s3-ap-southeast-1.amazonaws.com/nimbus2k16/nimbusteam/surender_soni.png"));

array_list.add(new CoreTeamItem("Deepak Kumar Jain","Hillffair Secretary",BASE_URL_JSEC+"sec_cultural.jpg"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

import appteam.nith.hillffair.Notification.DbHelper;
import appteam.nith.hillffair.R;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.target.Target;

import appteam.nith.hillffair.R;

public class SplashActivity extends AppCompatActivity {
private static final long TIME_SPLASH =1500 ;
private ImageView image_splash;
Expand All @@ -25,7 +24,7 @@ protected void onCreate(Bundle savedInstanceState) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_splash);
image_splash = (ImageView) findViewById(R.id.image_spalsh);
Target<GlideDrawable> into = Glide.with(SplashActivity.this).load(R.drawable.splash_new).into(image_splash);
Target<GlideDrawable> into = Glide.with(SplashActivity.this).load(R.drawable.splash_new2).into(image_splash);
Handler handler=new Handler();
handler.postDelayed(new Runnable() {
@Override
Expand Down
Binary file removed app/src/main/res/drawable/splash_new.png
Binary file not shown.
Binary file added app/src/main/res/drawable/splash_new2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_notification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
<android.support.v7.widget.RecyclerView
android:layout_below="@+id/my_toolbar"
android:paddingTop="16dp"
android:paddingLeft="16dp"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activity_notification_listview"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/eventcard_view_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
app:cardElevation="5dp">

<RelativeLayout

android:layout_width="match_parent"
android:layout_height="match_parent">

Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout/home_model_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:padding="4dp"

/>


</RelativeLayout>
<TextView
android:layout_width="match_parent"
Expand All @@ -56,7 +54,8 @@
android:text="title"
android:id="@+id/not_title"
android:layout_marginTop="12dp"
android:paddingLeft="5dp"
android:padding="5dp"
android:layout_margin="5dp"
android:layout_alignTop="@+id/frstimg"
android:layout_toRightOf="@+id/frstimg"
android:layout_toEndOf="@+id/frstimg" />
Expand Down

0 comments on commit a52a717

Please sign in to comment.