Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Bypass library with RxMarkdown library
- Loading branch information
1 parent
a76b8f0
commit 39336f5
Showing
11 changed files
with
108 additions
and
52 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
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
27 changes: 27 additions & 0 deletions
27
app/src/main/java/it/niedermann/owncloud/notes/util/MarkDownUtil.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,27 @@ | ||
package it.niedermann.owncloud.notes.util; | ||
|
||
import android.content.Context; | ||
import android.support.v4.content.res.ResourcesCompat; | ||
|
||
import com.yydcdut.rxmarkdown.RxMDConfiguration; | ||
|
||
import it.niedermann.owncloud.notes.R; | ||
|
||
/** | ||
* Created by stefan on 07.12.16. | ||
*/ | ||
|
||
public class MarkDownUtil { | ||
|
||
/** | ||
* Ensures every instance of RxMD uses the same configuration | ||
* | ||
* @param context Context | ||
* @return RxMDConfiguration | ||
*/ | ||
public static RxMDConfiguration getMarkDownConfiguration(Context context) { | ||
return new RxMDConfiguration.Builder(context) | ||
.setLinkColor(ResourcesCompat.getColor(context.getResources(), R.color.primary, null)) | ||
.build(); | ||
} | ||
} |
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