Improve layouts (#524)

make release checkboxes unchecked

admin users layout update

update commits and releases layout

profile fragments layout updates

improve labels

Merge branch 'master' into improve-layouts

branches and milestones layout update. Fix milestone infinite pagination loop for lower versions

layout updates for issues, pr. Fix pr nullable objects for lower versions

improve files layout

improve org info and list orgs

improve teams list layout by org

Fix repo layouts

Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/524
Reviewed-by: opyale <opyale@noreply.gitea.io>
This commit is contained in:
M M Arif 2020-06-01 15:53:56 +00:00
parent 37367e142f
commit 4f0091f151
36 changed files with 373 additions and 366 deletions

View File

@ -188,9 +188,11 @@ public class PullRequestsAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
prNumber.setText(String.valueOf(prModel.getNumber())); prNumber.setText(String.valueOf(prModel.getNumber()));
prMergeable.setText(String.valueOf(prModel.isMergeable())); prMergeable.setText(String.valueOf(prModel.isMergeable()));
prHeadBranch.setText(prModel.getHead().getRef()); if(prModel.getHead() != null) {
prIsFork.setText(String.valueOf(prModel.getHead().getRepo().isFork())); prHeadBranch.setText(prModel.getHead().getRef());
prForkFullName.setText(prModel.getHead().getRepo().getFull_name()); prIsFork.setText(String.valueOf(prModel.getHead().getRepo().isFork()));
prForkFullName.setText(prModel.getHead().getRepo().getFull_name());
}
prCommentsCount.setText(String.valueOf(prModel.getComments())); prCommentsCount.setText(String.valueOf(prModel.getComments()));
prCreatedTime.setText(TimeHelper.formatTime(prModel.getCreated_at(), new Locale(locale), timeFormat, context)); prCreatedTime.setText(TimeHelper.formatTime(prModel.getCreated_at(), new Locale(locale), timeFormat, context));

View File

@ -77,16 +77,20 @@ public class MilestonesFragment extends Fragment {
dataList = new ArrayList<>(); dataList = new ArrayList<>();
adapter = new MilestonesAdapter(ctx, dataList); adapter = new MilestonesAdapter(ctx, dataList);
adapter.setLoadMoreListener(() -> viewBinding.recyclerView.post(() -> { if(new Version(tinyDb.getString("giteaVersion")).higherOrEqual("1.12.0")) {
if(dataList.size() == resultLimit || pageSize == resultLimit) { adapter.setLoadMoreListener(() -> viewBinding.recyclerView.post(() -> {
int page = (dataList.size() + resultLimit) / resultLimit; if(dataList.size() == resultLimit || pageSize == resultLimit) {
loadMore(Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, page, resultLimit, tinyDb.getString("milestoneState"));
} int page = (dataList.size() + resultLimit) / resultLimit;
loadMore(Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, page, resultLimit, tinyDb.getString("milestoneState"));
})); }
}));
}
viewBinding.recyclerView.setHasFixedSize(true); viewBinding.recyclerView.setHasFixedSize(true);
viewBinding.recyclerView.setLayoutManager(new LinearLayoutManager(ctx)); viewBinding.recyclerView.setLayoutManager(new LinearLayoutManager(ctx));
@ -113,16 +117,21 @@ public class MilestonesFragment extends Fragment {
dataList.clear(); dataList.clear();
adapter = new MilestonesAdapter(ctx, dataList); adapter = new MilestonesAdapter(ctx, dataList);
adapter.setLoadMoreListener(() -> viewBinding.recyclerView.post(() -> {
if(dataList.size() == resultLimit || pageSize == resultLimit) { if(new Version(tinyDb.getString("giteaVersion")).higherOrEqual("1.12.0")) {
int page = (dataList.size() + resultLimit) / resultLimit; adapter.setLoadMoreListener(() -> viewBinding.recyclerView.post(() -> {
loadMore(Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, page, resultLimit, milestoneState);
} if(dataList.size() == resultLimit || pageSize == resultLimit) {
})); int page = (dataList.size() + resultLimit) / resultLimit;
loadMore(Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, page, resultLimit, milestoneState);
}
}));
}
tinyDb.putString("milestoneState", milestoneState); tinyDb.putString("milestoneState", milestoneState);
@ -171,7 +180,7 @@ public class MilestonesFragment extends Fragment {
@Override @Override
public void onResponse(@NonNull Call<List<Milestones>> call, @NonNull Response<List<Milestones>> response) { public void onResponse(@NonNull Call<List<Milestones>> call, @NonNull Response<List<Milestones>> response) {
if(response.isSuccessful()) { if(response.code() == 200) {
assert response.body() != null; assert response.body() != null;
if(response.body().size() > 0) { if(response.body().size() > 0) {
@ -222,7 +231,7 @@ public class MilestonesFragment extends Fragment {
@Override @Override
public void onResponse(@NonNull Call<List<Milestones>> call, @NonNull Response<List<Milestones>> response) { public void onResponse(@NonNull Call<List<Milestones>> call, @NonNull Response<List<Milestones>> response) {
if(response.isSuccessful()) { if(response.code() == 200) {
//remove loading view //remove loading view
dataList.remove(dataList.size() - 1); dataList.remove(dataList.size() - 1);
@ -238,7 +247,6 @@ public class MilestonesFragment extends Fragment {
} }
else { else {
Toasty.info(ctx, getString(R.string.noMoreData));
adapter.setMoreDataAvailable(false); adapter.setMoreDataAvailable(false);
} }

View File

@ -12,6 +12,7 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.TextView; import android.widget.TextView;
import org.mian.gitnex.R; import org.mian.gitnex.R;
@ -37,6 +38,7 @@ public class OrganizationInfoFragment extends Fragment {
private TextView orgDescInfo; private TextView orgDescInfo;
private TextView orgWebsiteInfo; private TextView orgWebsiteInfo;
private TextView orgLocationInfo; private TextView orgLocationInfo;
private LinearLayout orgInfoLayout;
private RepoInfoFragment.OnFragmentInteractionListener mListener; private RepoInfoFragment.OnFragmentInteractionListener mListener;
@ -76,6 +78,7 @@ public class OrganizationInfoFragment extends Fragment {
orgDescInfo = v.findViewById(R.id.orgDescInfo); orgDescInfo = v.findViewById(R.id.orgDescInfo);
orgWebsiteInfo = v.findViewById(R.id.orgWebsiteInfo); orgWebsiteInfo = v.findViewById(R.id.orgWebsiteInfo);
orgLocationInfo = v.findViewById(R.id.orgLocationInfo); orgLocationInfo = v.findViewById(R.id.orgLocationInfo);
orgInfoLayout = v.findViewById(R.id.orgInfoLayout);
orgNameInfo.setText(orgName); orgNameInfo.setText(orgName);
@ -99,19 +102,22 @@ public class OrganizationInfoFragment extends Fragment {
Organization orgInfo = response.body(); Organization orgInfo = response.body();
if (response.isSuccessful()) { if (response.code() == 200) {
if (response.code() == 200) { orgInfoLayout.setVisibility(View.VISIBLE);
assert orgInfo != null; assert orgInfo != null;
PicassoService.getInstance(ctx).get().load(orgInfo.getAvatar_url()).placeholder(R.drawable.loader_animated).transform(new RoundedTransformation(8, 0)).resize(180, 180).centerCrop().into(orgAvatar); PicassoService.getInstance(ctx).get().load(orgInfo.getAvatar_url()).placeholder(R.drawable.loader_animated).transform(new RoundedTransformation(8, 0)).resize(180, 180).centerCrop().into(orgAvatar);
orgDescInfo.setText(orgInfo.getDescription()); orgDescInfo.setText(orgInfo.getDescription());
orgWebsiteInfo.setText(orgInfo.getWebsite()); orgWebsiteInfo.setText(orgInfo.getWebsite());
orgLocationInfo.setText(orgInfo.getLocation()); orgLocationInfo.setText(orgInfo.getLocation());
mProgressBar.setVisibility(View.GONE); mProgressBar.setVisibility(View.GONE);
} }
else if(response.code() == 404) {
mProgressBar.setVisibility(View.GONE);
} }
else { else {

View File

@ -54,7 +54,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -70,4 +69,4 @@
android:textSize="20sp" android:textSize="20sp"
android:visibility="visible" /> android:visibility="visible" />
</LinearLayout> </LinearLayout>

View File

@ -58,7 +58,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -83,4 +82,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -160,7 +160,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/releaseTypeText" android:text="@string/releaseTypeText"
android:checked="true" android:checked="false"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:textColor="?attr/primaryTextColor"/> android:textColor="?attr/primaryTextColor"/>
@ -170,7 +170,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/releaseDraftText" android:text="@string/releaseDraftText"
android:checked="true" android:checked="false"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:textColor="?attr/primaryTextColor"/> android:textColor="?attr/primaryTextColor"/>
@ -194,4 +194,4 @@
</ScrollView> </ScrollView>
</LinearLayout> </LinearLayout>

View File

@ -74,7 +74,7 @@
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor" android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/hintColor" android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/> android:textColorHighlight="?attr/primaryTextColor" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -97,7 +97,7 @@
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="?attr/inputTextColor" android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/hintColor" android:textColorHint="?attr/hintColor"
android:textColorHighlight="?attr/primaryTextColor"/> android:textColorHighlight="?attr/primaryTextColor" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -105,7 +105,7 @@
android:text="@string/newTeamPermission" android:text="@string/newTeamPermission"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="10dp"/> android:layout_marginTop="10dp" />
<TextView <TextView
android:id="@+id/teamPermission" android:id="@+id/teamPermission"
@ -116,10 +116,10 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="Autofill" tools:ignore="Autofill"
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="@color/white" android:textColor="?attr/inputTextColor"
android:textColorHint="@color/white" android:textColorHint="?attr/hintColor"
android:inputType="none" android:textColorHighlight="?attr/primaryTextColor"
android:textColorHighlight="@color/white"/> android:inputType="none" />
<TextView <TextView
android:id="@+id/teamPermissionDetail" android:id="@+id/teamPermissionDetail"
@ -128,7 +128,7 @@
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="12sp" android:textSize="12sp"
android:gravity="start" android:gravity="start"
android:visibility="gone"/> android:visibility="gone" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
@ -136,7 +136,7 @@
android:text="@string/newTeamAccessControls" android:text="@string/newTeamAccessControls"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="10dp"/> android:layout_marginTop="10dp" />
<TextView <TextView
android:id="@+id/teamAccessControls" android:id="@+id/teamAccessControls"
@ -147,16 +147,16 @@
android:textSize="14sp" android:textSize="14sp"
tools:ignore="Autofill" tools:ignore="Autofill"
android:background="@drawable/shape_inputs" android:background="@drawable/shape_inputs"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/inputTextColor"
android:textColorHint="?attr/primaryTextColor" android:textColorHint="?attr/hintColor"
android:inputType="none" android:textColorHighlight="?attr/primaryTextColor"
android:textColorHighlight="?attr/primaryTextColor"/> android:inputType="none" />
<TextView <TextView
android:id="@+id/teamAccessControlsArray" android:id="@+id/teamAccessControlsArray"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone"/> android:visibility="gone" />
<Button <Button
android:id="@+id/createTeamButton" android:id="@+id/createTeamButton"
@ -171,10 +171,10 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="35dp"/> android:layout_height="35dp" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
</LinearLayout> </LinearLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
<GridView <GridView
@ -50,4 +49,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -34,7 +34,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
<TextView <TextView
@ -59,4 +58,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="gone" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -41,4 +40,4 @@
android:textSize="20sp" android:textSize="20sp"
android:visibility="gone" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -41,4 +40,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -54,4 +53,4 @@
android:visibility="gone" android:visibility="gone"
android:contentDescription="@string/addNewContent" /> android:contentDescription="@string/addNewContent" />
</RelativeLayout> </RelativeLayout>

View File

@ -15,7 +15,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -52,4 +51,4 @@
android:textSize="20sp" android:textSize="20sp"
android:visibility="gone" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>

View File

@ -15,7 +15,8 @@
android:orientation="vertical" android:orientation="vertical"
android:id="@+id/orgInfoLayout" android:id="@+id/orgInfoLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:visibility="gone">
<ImageView <ImageView
android:id="@+id/orgAvatar" android:id="@+id/orgAvatar"
@ -24,22 +25,16 @@
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:contentDescription="@string/orgContentAvatar" android:contentDescription="@string/orgContentAvatar"
android:layout_marginBottom="20dp"/> android:layout_marginBottom="15dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/nameText"
android:textSize="16sp"
android:textColor="?attr/primaryTextColor"/>
<TextView <TextView
android:id="@+id/orgNameInfo" android:id="@+id/orgNameInfo"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:textIsSelectable="true" android:textIsSelectable="true"
android:textSize="16sp" android:textSize="16sp"
android:paddingTop="5dp"
android:textColor="?attr/primaryTextColor"/> android:textColor="?attr/primaryTextColor"/>
<TextView <TextView
@ -115,4 +110,4 @@
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -13,7 +13,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -14,7 +14,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -39,4 +38,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -14,7 +14,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -39,4 +38,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -14,7 +14,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -39,4 +38,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -41,4 +40,4 @@
android:textSize="20sp" android:textSize="20sp"
android:visibility="gone" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>

View File

@ -16,7 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -41,4 +40,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -15,7 +15,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -40,4 +39,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -15,7 +15,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -52,4 +51,4 @@
android:padding="@dimen/fab_padding" android:padding="@dimen/fab_padding"
android:contentDescription="@string/addNewContent" /> android:contentDescription="@string/addNewContent" />
</RelativeLayout> </RelativeLayout>

View File

@ -15,7 +15,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:padding="4dp"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@ -40,4 +39,4 @@
android:indeterminate="true" android:indeterminate="true"
android:visibility="visible" /> android:visibility="visible" />
</RelativeLayout> </RelativeLayout>

View File

@ -3,10 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="10dp" android:padding="15dp"
android:paddingTop="10dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor" >
<LinearLayout <LinearLayout

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/commitList" android:id="@+id/commitList"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
tools:context=".activities.CommitsActivity"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
<LinearLayout <LinearLayout
@ -12,10 +11,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:fitsSystemWindows="true"
android:orientation="vertical" android:orientation="vertical"
android:layout_margin="15dp" android:layout_margin="15dp">
tools:ignore="UselessParent">
<TextView <TextView
android:id="@+id/commitTitleVw" android:id="@+id/commitTitleVw"
@ -80,7 +77,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:id="@+id/divider" android:id="@+id/divider"
android:layout_marginTop="10dp"
android:background="?attr/dividerColor" /> android:background="?attr/dividerColor" />
</RelativeLayout> </RelativeLayout>

View File

@ -4,7 +4,7 @@
android:id="@+id/linearLayoutFilesFrame" android:id="@+id/linearLayoutFilesFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="12dp"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
<TextView <TextView
@ -62,4 +62,4 @@
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -1,15 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayoutFrameIssuesList" android:id="@+id/relativeLayoutFrameIssuesList"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="15dp" android:background="?attr/primaryBackgroundColor">
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:background="?attr/primaryBackgroundColor"
tools:context=".activities.RepoDetailActivity">
<TextView <TextView
android:id="@+id/issueNumber" android:id="@+id/issueNumber"
@ -17,86 +12,95 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="invisible" /> android:visibility="invisible" />
<ImageView <RelativeLayout
android:id="@+id/assigneeAvatar" android:id="@+id/mainFrame"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="15dp"
android:contentDescription="@string/generalImgContentText"
android:src="@drawable/ic_android" />
<LinearLayout
android:id="@+id/infoSection"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toEndOf="@+id/assigneeAvatar" android:layout_alignParentTop="true"
android:layout_margin="15dp"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <ImageView
android:id="@+id/frameIssueNameStatus" android:id="@+id/assigneeAvatar"
android:layout_width="match_parent" android:layout_width="48dp"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_marginBottom="10dp" android:layout_marginEnd="15dp"
android:orientation="horizontal"> android:contentDescription="@string/generalImgContentText"
android:src="@drawable/ic_android" />
<TextView
android:id="@+id/issueTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="top|center_vertical"
android:textAlignment="gravity"
android:text="@string/strFilter"
android:textColor="?attr/primaryTextColor"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/frameCreatedDate" android:id="@+id/infoSection"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_toEndOf="@+id/assigneeAvatar"
android:orientation="horizontal"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:id="@+id/frameCommentsCount" android:id="@+id/frameIssueNameStatus"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_weight=".25"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/issueCommentsCount" android:id="@+id/issueTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="start" android:gravity="top|center_vertical"
android:drawablePadding="5dp" android:textAlignment="gravity"
android:drawableStart="@drawable/ic_comment_20" android:text="@string/strFilter"
android:layout_gravity="center_horizontal" android:textColor="?attr/primaryTextColor"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/frameCreatedDate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/frameCommentsCount"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/issueCommentsCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="start"
android:drawablePadding="5dp"
android:drawableStart="@drawable/ic_comment_20"
android:layout_gravity="center_horizontal"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:id="@+id/issueCreatedTime"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="14sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>
<TextView
android:id="@+id/issueCreatedTime"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </RelativeLayout>
<View <View
android:layout_below="@id/infoSection" android:layout_below="@id/mainFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:id="@+id/divider" android:id="@+id/divider"
android:layout_marginTop="15dp"
android:background="?attr/dividerColor" /> android:background="?attr/dividerColor" />
</RelativeLayout> </RelativeLayout>

View File

@ -1,11 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:id="@+id/relativeLayoutMainFrame" android:id="@+id/relativeLayoutMainFrame"
android:background="?attr/primaryBackgroundColor"> android:background="?attr/primaryBackgroundColor">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelTitle"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelId"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelColor"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -18,6 +37,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="start" android:layout_gravity="start"
android:paddingTop="5dp"
android:contentDescription="@string/labelMenuContentDesc" android:contentDescription="@string/labelMenuContentDesc"
android:gravity="start" android:gravity="start"
android:layout_weight="1" android:layout_weight="1"
@ -35,24 +55,6 @@
android:scaleType="fitEnd" android:scaleType="fitEnd"
android:src="@drawable/ic_dotted_menu_horizontal" /> android:src="@drawable/ic_dotted_menu_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelTitle"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelId"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:id="@+id/labelColor"/>
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="15dp"
android:id="@+id/milestoneFrame" android:id="@+id/milestoneFrame"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
android:orientation="vertical"> android:orientation="vertical">
@ -21,119 +20,136 @@
android:id="@+id/milestoneStatus" /> android:id="@+id/milestoneStatus" />
<LinearLayout <LinearLayout
android:id="@+id/frameTitle" android:id="@+id/mainFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:layout_alignParentTop="true"
android:layout_margin="15dp"
android:orientation="vertical">
<TextView <LinearLayout
android:id="@+id/milestoneTitle" android:id="@+id/frameTitle"
android:layout_width="0dp" android:layout_width="match_parent"
android:textIsSelectable="true"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight=".80" android:orientation="horizontal">
android:layout_marginBottom="5dp"
android:textColor="?attr/primaryTextColor"
android:textSize="18sp" />
<ImageView
android:id="@+id/milestoneState"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".15"
android:layout_gravity="end"
android:gravity="end"
android:scaleType="fitEnd"
android:contentDescription="@string/pageTitleCreateMilestone"
android:layout_marginBottom="5dp" />
</LinearLayout>
<TextView
android:id="@+id/milestoneDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/repoDescription"
android:textIsSelectable="true"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/milestoneIssuesClosed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="8"
android:text="@string/repoWatchers"
android:gravity="start"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
<ProgressBar
android:id="@+id/milestoneProgress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="80"
android:progress="50"
android:layout_marginTop="2dp"
android:progressDrawable="@drawable/progress_bar"
android:progressTint="@color/colorLightGreen" />
<TextView
android:id="@+id/milestoneIssuesOpen"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="8"
android:text="@string/repoStars"
android:gravity="end"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/milestoneDateMenuFrame"
android:layout_marginTop="8dp"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_weight=".90"
android:layout_height="wrap_content"
android:id="@+id/dueDateFrame"
android:orientation="horizontal"
android:layout_marginTop="3dp">
<TextView <TextView
android:id="@+id/milestoneDueDate" android:id="@+id/milestoneTitle"
android:layout_width="wrap_content" android:layout_width="0dp"
android:textIsSelectable="true"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/dueDate" android:layout_weight=".80"
android:layout_marginBottom="5dp"
android:textColor="?attr/primaryTextColor"
android:textSize="18sp" />
<ImageView
android:id="@+id/milestoneState"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".15"
android:layout_gravity="end"
android:gravity="end"
android:scaleType="fitEnd"
android:contentDescription="@string/pageTitleCreateMilestone"
android:layout_marginBottom="5dp" />
</LinearLayout>
<TextView
android:id="@+id/milestoneDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/repoDescription"
android:textIsSelectable="true"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/milestoneIssuesClosed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="8"
android:text="@string/repoWatchers"
android:gravity="start" android:gravity="start"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="12sp" /> android:textSize="14sp" />
</RelativeLayout> <ProgressBar
android:id="@+id/milestoneProgress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="80"
android:progress="50"
android:layout_marginTop="2dp"
android:progressDrawable="@drawable/progress_bar"
android:progressTint="@color/colorLightGreen" />
<ImageView <TextView
android:id="@+id/milestonesMenu" android:id="@+id/milestoneIssuesOpen"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight=".10" android:layout_height="wrap_content"
android:layout_weight="8"
android:text="@string/repoStars"
android:gravity="end"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" android:id="@+id/milestoneDateMenuFrame"
android:scaleType="fitEnd" android:layout_marginTop="8dp"
android:src="@drawable/ic_dotted_menu_horizontal" android:orientation="horizontal">
android:contentDescription="@string/menuContentDesc" />
<RelativeLayout
android:layout_width="0dp"
android:layout_weight=".90"
android:layout_height="wrap_content"
android:id="@+id/dueDateFrame"
android:orientation="horizontal"
android:layout_marginTop="3dp">
<TextView
android:id="@+id/milestoneDueDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/dueDate"
android:gravity="start"
android:textColor="?attr/primaryTextColor"
android:textSize="12sp" />
</RelativeLayout>
<ImageView
android:id="@+id/milestonesMenu"
android:layout_width="0dp"
android:layout_weight=".10"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:scaleType="fitEnd"
android:src="@drawable/ic_dotted_menu_horizontal"
android:contentDescription="@string/menuContentDesc" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> <View
android:layout_below="@id/mainFrame"
android:layout_width="match_parent"
android:layout_height="1dp"
android:id="@+id/divider"
android:background="?attr/dividerColor" />
</RelativeLayout>

View File

@ -1,19 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor">
<RelativeLayout <RelativeLayout
android:id="@+id/linearLayoutFrame" android:id="@+id/linearLayoutFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:fitsSystemWindows="true"
android:orientation="vertical" android:orientation="vertical"
android:padding="10dp" android:padding="15dp">
tools:context=".activities.MainActivity">
<TextView <TextView
android:id="@+id/organizationId" android:id="@+id/organizationId"
@ -26,7 +24,6 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginEnd="15dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="5dp"
android:src="@drawable/ic_android" android:src="@drawable/ic_android"
android:contentDescription="@string/orgContentAvatar"/> android:contentDescription="@string/orgContentAvatar"/>
@ -50,7 +47,6 @@
android:id="@+id/orgDescription" android:id="@+id/orgDescription"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="@string/orgDescription" android:text="@string/orgDescription"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="16sp" android:textSize="16sp"

View File

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayoutFrame" android:id="@+id/relativeLayoutFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="15dp" android:background="?attr/primaryBackgroundColor">
tools:context=".activities.RepoDetailActivity">
<TextView <TextView
android:id="@+id/prNumber" android:id="@+id/prNumber"
@ -38,77 +36,87 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="invisible"/> android:visibility="invisible"/>
<ImageView <RelativeLayout
android:id="@+id/assigneeAvatar" android:id="@+id/mainFrame"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="15dp"
android:contentDescription="@string/generalImgContentText"
android:src="@drawable/ic_android" />
<LinearLayout
android:id="@+id/infoSection"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toEndOf="@+id/assigneeAvatar" android:layout_alignParentTop="true"
android:layout_margin="15dp"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <ImageView
android:id="@+id/framePrNameStatus" android:id="@+id/assigneeAvatar"
android:layout_width="match_parent" android:layout_width="48dp"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_marginBottom="10dp" android:layout_marginEnd="15dp"
android:orientation="horizontal"> android:contentDescription="@string/generalImgContentText"
android:src="@drawable/ic_android" />
<TextView
android:id="@+id/prTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="top|center_vertical"
android:textAlignment="gravity"
android:textColor="?attr/primaryTextColor"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/frameCreatedDate" android:id="@+id/infoSection"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_toEndOf="@+id/assigneeAvatar"
android:orientation="horizontal"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:id="@+id/frameCommentsCount" android:id="@+id/framePrNameStatus"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_weight=".25"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/prCommentsCount" android:id="@+id/prTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="start" android:gravity="top|center_vertical"
android:drawablePadding="5dp" android:textAlignment="gravity"
android:drawableStart="@drawable/ic_comment_20" android:textColor="?attr/primaryTextColor"
android:layout_gravity="center_horizontal" android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/frameCreatedDate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/frameCommentsCount"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/prCommentsCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="start"
android:drawablePadding="5dp"
android:drawableStart="@drawable/ic_comment_20"
android:layout_gravity="center_horizontal"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:id="@+id/prCreatedTime"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="14sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>
<TextView
android:id="@+id/prCreatedTime"
android:layout_width="0dp"
android:layout_weight=".25"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="?attr/primaryTextColor"
android:textSize="14sp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -3,10 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="15dp" android:padding="15dp"
android:paddingTop="15dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor" >
<TextView <TextView

View File

@ -1,11 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="10dp" android:padding="15dp"
android:paddingTop="10dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor" >
<ImageView <ImageView

View File

@ -1,11 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="10dp" android:padding="15dp"
android:paddingTop="10dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor" >
<ImageView <ImageView

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/primaryBackgroundColor" > android:background="?attr/primaryBackgroundColor" >
@ -9,7 +10,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:fitsSystemWindows="true"
android:orientation="vertical" android:orientation="vertical"
android:layout_margin="15dp" > android:layout_margin="15dp" >
@ -72,8 +72,8 @@
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_marginTop="5dp" android:id="@+id/divider"
android:background="?attr/inputBackgroundColor" /> android:background="?attr/dividerColor" />
<TextView <TextView
android:id="@+id/releaseZipDownload" android:id="@+id/releaseZipDownload"