-
Notifications
You must be signed in to change notification settings - Fork 332
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 #546 from kiuchikeisuke/issue515_showSNSlink
fix:issue515 I want to be able to go to GitHub and Twitter and etc.. …
- Loading branch information
Showing
14 changed files
with
242 additions
and
7 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
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:color="@color/button_ripple" | ||
> | ||
<item android:drawable="@drawable/shape_round_corner_68dp" /> | ||
</ripple> |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/shape_round_corner_68dp" /> | ||
</selector> |
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,4 @@ | ||
<vector android:height="48dp" android:viewportHeight="24.0" | ||
android:viewportWidth="24.0" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#FF000000" android:pathData="M15.6,10.79c0.97,-0.67 1.65,-1.77 1.65,-2.79 0,-2.26 -1.75,-4 -4,-4L7,4v14h7.04c2.09,0 3.71,-1.7 3.71,-3.79 0,-1.52 -0.86,-2.82 -2.15,-3.42zM10,6.5h3c0.83,0 1.5,0.67 1.5,1.5s-0.67,1.5 -1.5,1.5h-3v-3zM13.5,15.5L10,15.5v-3h3.5c0.83,0 1.5,0.67 1.5,1.5s-0.67,1.5 -1.5,1.5z"/> | ||
</vector> |
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,4 @@ | ||
<vector android:height="48dp" android:viewportHeight="24.0" | ||
android:viewportWidth="24.0" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#FF000000" android:pathData="M12,7L12,3L2,3v18h20L22,7L12,7zM6,19L4,19v-2h2v2zM6,15L4,15v-2h2v2zM6,11L4,11L4,9h2v2zM6,7L4,7L4,5h2v2zM10,19L8,19v-2h2v2zM10,15L8,15v-2h2v2zM10,11L8,11L8,9h2v2zM10,7L8,7L8,5h2v2zM20,19h-8v-2h2v-2h-2v-2h2v-2h-2L12,9h8v10zM18,11h-2v2h2v-2zM18,15h-2v2h2v-2z"/> | ||
</vector> |
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,4 @@ | ||
<vector android:height="48dp" android:viewportHeight="24.0" | ||
android:viewportWidth="24.0" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#161514" android:fillType="evenOdd" android:pathData="M12,2.25c-5.522,0 -10,4.477 -10,10 0,4.418 2.865,8.166 6.839,9.489 0.5,0.092 0.682,-0.217 0.682,-0.482 0,-0.237 -0.008,-0.866 -0.013,-1.7 -2.782,0.603 -3.369,-1.342 -3.369,-1.342 -0.454,-1.155 -1.11,-1.462 -1.11,-1.462 -0.908,-0.62 0.069,-0.608 0.069,-0.608 1.003,0.07 1.531,1.03 1.531,1.03 0.892,1.529 2.341,1.087 2.91,0.831 0.092,-0.646 0.35,-1.086 0.636,-1.336 -2.22,-0.253 -4.555,-1.11 -4.555,-4.943 0,-1.091 0.39,-1.984 1.029,-2.683 -0.103,-0.253 -0.446,-1.27 0.098,-2.647 0,0 0.84,-0.268 2.75,1.026A9.578,9.578 0,0 1,12 7.086c0.85,0.004 1.705,0.114 2.504,0.337 1.909,-1.294 2.747,-1.026 2.747,-1.026 0.546,1.377 0.203,2.394 0.1,2.647 0.64,0.699 1.028,1.592 1.028,2.683 0,3.842 -2.339,4.687 -4.566,4.935 0.359,0.309 0.678,0.919 0.678,1.852 0,1.336 -0.012,2.415 -0.012,2.743 0,0.267 0.18,0.579 0.688,0.481C19.137,20.413 22,16.668 22,12.25c0,-5.523 -4.478,-10 -10,-10"/> | ||
</vector> |
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,4 @@ | ||
<vector android:height="48dp" android:viewportHeight="24.0" | ||
android:viewportWidth="24.0" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#55ACEE" android:fillType="nonZero" android:pathData="M22,5.8a8.201,8.201 0,0 1,-2.357 0.645,4.115 4.115,0 0,0 1.804,-2.27c-0.792,0.47 -1.67,0.812 -2.605,0.996a4.103,4.103 0,0 0,-6.992 3.742,11.65 11.65,0 0,1 -8.458,-4.287 4.083,4.083 0,0 0,-0.555 2.063c0,1.423 0.724,2.68 1.825,3.415a4.087,4.087 0,0 1,-1.858 -0.513v0.052a4.106,4.106 0,0 0,3.29 4.023,4.112 4.112,0 0,1 -1.852,0.07 4.107,4.107 0,0 0,3.833 2.85,8.233 8.233,0 0,1 -5.096,1.756c-0.331,0 -0.658,-0.019 -0.979,-0.057a11.614,11.614 0,0 0,6.29 1.844c7.547,0 11.674,-6.253 11.674,-11.675 0,-0.178 -0.004,-0.355 -0.011,-0.53A8.34,8.34 0,0 0,22 5.798"/> | ||
</vector> |
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
android:shape="rectangle" | ||
> | ||
<corners android:radius="48dp" /> | ||
<size | ||
android:width="68dp" | ||
android:height="68dp" | ||
/> | ||
<solid android:color="@color/card_background_color" /> | ||
</shape> |
143 changes: 143 additions & 0 deletions
143
app/src/main/res/layout/bottom_sheet_dialog_speaker_sns.xml
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,143 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
> | ||
<data> | ||
<import type="android.view.View"/> | ||
<variable | ||
name="speaker" | ||
type="io.github.droidkaigi.confsched2018.model.Speaker" | ||
/> | ||
</data> | ||
<android.support.constraint.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
> | ||
|
||
<ImageButton | ||
android:id="@+id/speaker_detail_twitter" | ||
style="@style/SNSLinkButton" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="24dp" | ||
android:contentDescription="speaker_detail_twitter" | ||
android:visibility="@{speaker.twitterUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintEnd_toStartOf="@+id/speaker_detail_github" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:srcCompat="@drawable/ic_twitter_blue_48dp" | ||
/> | ||
<ImageButton | ||
android:id="@+id/speaker_detail_github" | ||
style="@style/SNSLinkButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:contentDescription="speaker_detail_github" | ||
android:visibility="@{speaker.githubUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintBottom_toBottomOf="@+id/speaker_detail_twitter" | ||
app:layout_constraintEnd_toStartOf="@+id/speaker_detail_company" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/speaker_detail_twitter" | ||
app:layout_constraintTop_toTopOf="@+id/speaker_detail_twitter" | ||
app:srcCompat="@drawable/ic_github_black_48dp" | ||
/> | ||
<ImageButton | ||
android:id="@+id/speaker_detail_company" | ||
style="@style/SNSLinkButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:contentDescription="speaker_detail_company" | ||
android:visibility="@{speaker.companyUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintBottom_toBottomOf="@+id/speaker_detail_github" | ||
app:layout_constraintEnd_toStartOf="@+id/speaker_detail_blog" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/speaker_detail_github" | ||
app:layout_constraintTop_toTopOf="@+id/speaker_detail_github" | ||
app:srcCompat="@drawable/ic_company_black_48dp" | ||
/> | ||
<ImageButton | ||
android:id="@+id/speaker_detail_blog" | ||
style="@style/SNSLinkButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:contentDescription="speaker_detail_blog" | ||
android:visibility="@{speaker.blogUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintBottom_toBottomOf="@+id/speaker_detail_company" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/speaker_detail_company" | ||
app:layout_constraintTop_toTopOf="@+id/speaker_detail_company" | ||
app:srcCompat="@drawable/ic_blog_black_48dp" | ||
/> | ||
<TextView | ||
android:id="@+id/speaker_detail_twitter_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="24dp" | ||
android:layout_marginEnd="8dp" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="8dp" | ||
android:text="Twitter" | ||
android:visibility="@{speaker.twitterUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="@+id/speaker_detail_twitter" | ||
app:layout_constraintStart_toStartOf="@+id/speaker_detail_twitter" | ||
app:layout_constraintTop_toBottomOf="@+id/speaker_detail_twitter" | ||
/> | ||
<TextView | ||
android:id="@+id/speaker_detail_github_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="8dp" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="8dp" | ||
android:text="github" | ||
android:visibility="@{speaker.githubUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintEnd_toEndOf="@+id/speaker_detail_github" | ||
app:layout_constraintStart_toStartOf="@+id/speaker_detail_github" | ||
app:layout_constraintTop_toBottomOf="@+id/speaker_detail_github" | ||
/> | ||
<TextView | ||
android:id="@+id/speaker_detail_company_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="8dp" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="8dp" | ||
android:text="Company" | ||
android:visibility="@{speaker.companyUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintEnd_toEndOf="@+id/speaker_detail_company" | ||
app:layout_constraintStart_toStartOf="@+id/speaker_detail_company" | ||
app:layout_constraintTop_toBottomOf="@+id/speaker_detail_company" | ||
/> | ||
<TextView | ||
android:id="@+id/speaker_detail_blog_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="8dp" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="8dp" | ||
android:text="Blog" | ||
android:visibility="@{speaker.blogUrl == null ? View.GONE : View.VISIBLE}" | ||
app:layout_constraintEnd_toEndOf="@+id/speaker_detail_blog" | ||
app:layout_constraintStart_toStartOf="@+id/speaker_detail_blog" | ||
app:layout_constraintTop_toBottomOf="@+id/speaker_detail_blog" | ||
/> | ||
<TextView | ||
android:id="@+id/speaker_detail_sns_empty" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="24dp" | ||
android:layout_marginEnd="24dp" | ||
android:layout_marginStart="24dp" | ||
android:layout_marginTop="24dp" | ||
android:text="@string/speaker_sns_empty_message" | ||
android:textAppearance="@style/TextAppearance.App.Subhead" | ||
android:visibility="@{speaker.twitterUrl == null && speaker.githubUrl == null && speaker.companyUrl == null && speaker.blogUrl == null ? View.VISIBLE : View.GONE}" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
/> | ||
</android.support.constraint.ConstraintLayout> | ||
</layout> |
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
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
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